package com.n9.qq.android.RegisterProxySvcPack;

import java.io.Serializable;

/**
 * @author ice
 * @since 2019/3/1 14:07
 */
public final class BusinessType implements Serializable {
    public static final BusinessType BusinessType_Friend;
    public static final BusinessType BusinessType_LBS_YSS;
    public static final BusinessType BusinessType_MQQ;
    public static final int _BusinessType_Friend = 1;
    public static final int _BusinessType_LBS_YSS = 101;
    public static final int _BusinessType_MQQ = 0;
    private static BusinessType[] a;
    private String __T = new String();
    private int __value;

    static {
        boolean var0;
        if (!BusinessType.class.desiredAssertionStatus()) {
            var0 = true;
        } else {
            var0 = false;
        }

        boolean $assertionsDisabled = var0;
        a = new BusinessType[3];
        BusinessType_MQQ = new BusinessType(0, 0, "BusinessType_MQQ");
        BusinessType_Friend = new BusinessType(1, 1, "BusinessType_Friend");
        BusinessType_LBS_YSS = new BusinessType(2, 101, "BusinessType_LBS_YSS");
    }

    private BusinessType(int var1, int var2, String var3) {
        this.__T = var3;
        this.__value = var2;
        a[var1] = this;
    }

    public static BusinessType convert(int var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].value() == var0) {
                return a[i];
            }
        }
        return null;
    }

    public static BusinessType convert(String var0) {
        for (int i = 0; i < a.length; i++) {
            if (a[i].toString().equals(var0)) {
                return a[i];
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.__T;
    }

    public int value() {
        return this.__value;
    }
}